//
//  BaseViewController.h
//  BaseLib
//
//  Created by CPX on 2018/5/21.
//  Copyright © 2018年 CPX. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MyNavigationBar.h"

/**
 基类控制器，废弃，不推荐使用
 @author yzl
 */
@interface BaseViewController : UIViewController

@property (nonatomic, copy) NSString *pageName;
@property (nonatomic, strong) MyNavigationBar *myNavigationBar;


/**
 初始化UI
 */
- (void)initUI;

/**
 初始化导航
 */
- (void)initNavigation;

/**
 加载数据
 */
- (void)loadData;


/**
 手势

 @return 默认返回true
 */
- (BOOL)gestureRecognizerShouldBegin;


/**
 处理错误

 @param error 错误
 */
- (void)handleError:(NSError*)error;


/**
 初始化导航返回按钮
 */
- (void)initLeftBackNaviButton;


/**
 App布局方向改变
 */
- (void)onAppLayoutDirectionSettingChanged:(NSNotification*)notification;


/**
 App黑夜白天模式改变

 @param notification 通知
 */
- (void)onAppLightModeChanged:(NSNotification*)notification;

@end
